#!/bin/bash

arg_cnt=$#
dst_path=$1
#if [ $arg_cnt -ne 1 ]; then
#	echo "Invalid args"
#	echo "Usage:$0 dst_path"
#	exit;
#fi
cd $dst_path || { echo "could not cd to:$dst_path"; exit; }
i=0
while [ $i -lt 1024 ]; do
        j=0
        mkdir $i
        cd $i
        while [ $j -lt 1024 ]; do
                mkdir $j
                j=`expr $j + 1`
        done
        cd ..
        i=`expr $i + 1`
done
